package com.vv.images;

import java.io.IOException;
import java.nio.file.*;

/**
 * @Description
 * @Author xingchao
 * @Date 2021/2/4 18:01
 */
public class PathImg {
    public static void main(String[] args) throws IOException {
        Path urlPath = Paths.get("http://182.118.27.17/0/aU3Yn2m32IBv.jpg.cw720.t.webp?g=file.m.mvbox.cn");
        Path localDir = Paths.get("src\\main\\resources\\static\\images\\TEST.jpg");
//        Path file = Files.createFile(urlPath);
        Files.copy(Files.newInputStream(urlPath), localDir, StandardCopyOption.REPLACE_EXISTING);
    }
}
